package agent;

/**
 * @ClassName Proxy
 * @Description TODO
 * @Author 李奉武
 * @Motto 逆水行舟, 不进则退
 * @Date 2022/3/30 15:24
 * @Version 1.0
 */
public class Proxy implements Rent{

    private Host host;

    public Proxy() {

    }

    public Proxy(Host host) {
        this.host = host;
    }

    /**
     * 租房核心业务
     * */
    @Override
    public void houseRent() {
        this.price();
        this.lookHouse();
        host.houseRent();
    }

    /**
     * 计算功能
     * */
    public void price(){
        System.out.println("计算价格");
    }

    /**
     * 看房功能
     * */
    public void lookHouse(){
        System.out.println("看房操作");
    }
}
